/* Copyright Tvb Network (Pty) Ltd 2026 */

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

.dark .cart-header {
  border-bottom-color: #374151;
}

.cart-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.cart-count-2 {
  font-size: 1rem;
  color: #64748b;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
  height: 75%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #f1f5f9;
}

.dark .cart-item-row {
  background: #1e2937;
  border-color: #374151;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.item-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.item-price {
  font-size: 0.95rem;
  color: #64748b;
}

.item-subtotal {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 4px;
}

.qty-controls {
	display: flex;
	align-items: center;
    gap: 8px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  background: #e5e7eb;
  border: none;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  touch-action: manipulation;
}

.qty-display {
  min-width: 36px;
  text-align: center;
  font-weight: 600;
}

.remove-btn {
	width: 54px;
    height: 54px;
	border: none;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 0.9rem;
	cursor: pointer;
}

.cart-footer {
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
  margin-top: 16px;
}

.dark .cart-footer {
  border-top-color: #374151;
}

.grand-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.total-amount {
  color: #10b981;
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  background: green;
  /* background: #6366f1;# */
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

.checkout-btn:hover {
  background: #4f46e5;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-subtitle {
  font-size: 1rem;
}

/* Scrollbar (optional) */
.cart-items-list::-webkit-scrollbar {
  width: 6px;
}

.cart-items-list::-webkit-scrollbar-thumb {
  background: rgba(100,116,139,0.4);
  border-radius: 3px;
}














.checkout-page {
    max-width: 1100px;
    position:absolute;
	right:0px;
	top:0px;
	height:100%;
	width:50%;
    padding: 24px 16px;
    background: #f8f9fa;
    border-radius: 16px;
	overflow-y:auto;
}

.close-icon {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 36px;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
}

.checkout-header {
    text-align: center;
    margin-bottom: 32px;
}

.checkout-header h1 {
    margin: 0;
    font-size: 2.1rem;
    color: #1a1a1a;
}

.store-name-cho {
    margin: 6px 0 0;
    color: #555;
    font-size: 1.1rem;
	display:none;
}

.three-sections {
    /* display: flex; */
    overflow-y:auto;
	
}

.card {
    flex: 1;
    min-width: 320px;
    background: white;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
	margin: 20px;
}

.card-title {
    margin: 0 0 20px;
    font-size: 1.45rem;
    color: #222;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.info-line {
    display: flex;
    justify-content: space-between;
    font-size: 1.05em;
}

.label {
    font-weight: 600;
    color: #444;
    min-width: 110px;
}

.note-textarea {
    width: 100%;
    min-height: 90px;
    padding: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 1em;
    resize: vertical;
}

.field-label {
    display: block;
    margin: 16px 0 8px;
    font-weight: 600;
    color: #333;
}

.method-select, .promo-field, .custom-tip {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    margin: 8px 0;
}

.promo-group {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}

.promo-field {
    flex: 1;
}

.btn-apply {
    padding: 0 24px;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.tips-group {
    margin-top: 20px;
}

.tips-label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.tip-button {
    padding: 8px 18px;
    margin: 0 6px 10px 0;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    cursor: pointer;
}

.tip-button:hover {
    background: #e2e6ea;
}

.summary-rows {
    margin: 16px 0 28px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1.05em;
    border-bottom: 1px solid #f0f0f0;
}

.total-row {
    font-size: 1.3em;
    font-weight: 700;
    border-top: 2px solid #ddd;
    margin-top: 12px;
    padding-top: 16px;
}

.total-value {
    color: #2c7e3f;
}

.btn-place {
    width: 100%;
    padding: 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
	position:relative;
}

.btn-place:disabled, .btn-disabled {
    background: #adb5bd;
    cursor: not-allowed;
}



.tips-section {
    margin-top: 24px;
}

.tips-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: block;
}

.tip-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tip-pill {
    padding: 10px 18px;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.18s ease;
    color: #444;
}

.tip-pill:hover {
    background: #e2e6ea;
    border-color: #ced4da;
}

.tip-pill.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
    font-weight: 600;
}

.custom-tip-wrapper {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

.custom-tip-wrapper.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.custom-tip-input {
    width: 140px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
}

.currency {
    font-weight: 600;
    color: #555;
    font-size: 1.1em;
}




.spinnerBx{
	display: none;
    position: absolute;
    top: 0%;
    left: 0%;
	z-index:1;
	width:100%;
	height:100%;
	border-radius: 10px;
	background-color: #5d5d5d;
	padding: 14px;
}


.spinner {
    margin-left: 10px;
    width: 20px;
    height: 20px;
    border: 3px solid white;
    border-top-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: spin 0.5s linear infinite;
    transform: translate(-50%, -50%);
	margin-top: 12px;
    vertical-align: middle;
	display: inline-block;
}


.spinnertxt{
	display: inline-block;
}

/* Simple spinner animation if not using ::after pseudo-element */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}





/* Responsive */
@media (max-width: 768px) {
	.spinnertxt{
		font-size: 0.9rem;
	}
	
	
	.spinnertxt{
		vertical-align: top;
	}
	
	.checkout-page {	
		width: 100%;
		max-width:unset;
		padding:0px;
		border-radius: 0px;
	}
	
	
	.cart-count-2 {
		margin-right:60px;
	}
	
	.cart-title{
		font-size: 1.2rem;
	}
	
	.remove-btn {
		position: absolute;
		bottom: 10px;
		right: 10px;
	}
	
	.qty-btn{
		width: 30px;
		height: 30px;
	}
	
	.cart-item-row {
		position:relative;
	}
	
	.qty-controls {
		gap: 0px;
		position: absolute;
        bottom: 0px;
        margin-left: -14px;
	}
	
	.item-name {
		font-size: 1rem;
		margin: 0px 0px 0px 25px;
	}
	
	.item-price{
		padding-left: 25px;
	}
	
	.item-subtotal{
		padding-left: 25px;			
	}
	
	.cart-items-list{
		height: 65%;
	}
}
























.cart-icon-area {
    max-width: 100px;
    min-width: 25px;
	width:auto;
    height: 36px;
	margin:auto;
}

.cart-preview-img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius:50%;
    border: 3px solid green;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    position: absolute;
    left: 4px;
    transition: transform 0.2s ease;
}

.cart-preview-img.offset-0 { z-index: 1; transform: translate(0); }
.cart-preview-img.offset-1 { z-index: 2; transform: translate(24px); }
.cart-preview-img.offset-2 { z-index: 3; transform: translate(48px); }

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e63946;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.cart-text-area {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #212529;
	display: block;

}

.view-cart-text {
    font-weight: 600;
	color:#fff;
	display: block;
}

.item-count-text {
    color: #e1e1e1;
    font-size: 0.8rem;
	display: block;
    margin-top: -5px;
}

.arrow-icon {
    font-size: 20px;
    color: #6c757d;
	filter:invert(1);
}

























.success-screen {
    background: #f8f9fa;
    padding: 24px;
    position: relative;
    width: 40%;
    left: 30%;
    height: 85%;
    border-radius: 20px;
    top: 7%;
}

.confetti-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.confetti-particle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    top: -20px;
    animation: fall linear forwards;
}

@keyframes fall {
    0%   { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.content-stack {
    width: 100%;
    z-index: 1;
    text-align: center;
}

.checkmark-wrapper {
    margin: 0 auto 32px;
    width: 120px;
    height: 120px;
    background: #e6fffa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(72,187,120,0.3);
}

.success-icon {
    font-size: 80px;
    color: #48bb78;
}

.animate-check {
    animation: pop 0.6s ease-out;
}

@keyframes pop {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.success-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 16px;
}

.success-message {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 32px;
}

.highlight {
    font-weight: 600;
    color: #2f855a;
}

.summary-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 32px;
}

.order-row, .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.order-label, .total-label {
    font-weight: 500;
    color: #718096;
}

.order-value, .total-value {
    font-weight: 700;
    font-size: 1.15rem;
}

.total-value {
    color: #38a169;
}


.actions-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-primary, .btn-outline {
    padding: 12px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: green;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #2f855a;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #cbd5e0;
    color: #2d3748;
}

.btn-outline:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}





/* Optional: responsive adjustments */
@media (max-width: 480px) {
	.view-cart-text {
		font-size:10pt;
	}
	
	.cart-icon-area {
		/* display:none; */
	}
	
	.item-count-text{
		font-size:8pt;
		padding-top:2px;
	}

	.success-message{
		font-size: 1rem;
	}
	.success-heading {
		font-size: 1.4rem;
	}
	
	.success-screen{
		width:100%;
		left:0px;
	}
    .cart-toggle {
        padding: 6px 0px;
        gap: 0px;
    }
    .cart-preview-img {
        width: 40px;
        height: 40px;
		display:none;
    }
	
}














.error-box {
	max-width: 360px;
	margin: 40px auto;
	padding: 32px 24px;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.12);
	text-align: center;
	border: 1px solid #e8f5e9;
    position: absolute;
    left: calc((100% - 360px) / 2);
    top: calc((100% - 360px) / 2);
}

.error-illustration {
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f7f0;                  /* soft green bg */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 4px 12px rgba(46,125,50,0.08);
}

.error-illustration img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.error-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.error-message {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  margin: 0 0 28px 0;
}

.retry-button {
  display: inline-block;
  padding: 12px 32px;
  background: #2e7d32;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  border: none;
  cursor: pointer;
}

.retry-button:hover {
  background: #1b5e20;
  transform: translateY(-2px);
}

.retry-button:active {
  transform: translateY(0);
}





.original-price {
  font-size: 16px;
  color: #999999;
  text-decoration: line-through;
  font-weight: 400;
  margin-right:16px;
}

.new-price {
  font-size: 22px;
  font-weight: 700;
  color: #2e7d32;
  margin-right:8px;
}

.promotion-badge {
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 8px;
}
